package cn.mjnxin.charge.model.entity;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
/**
 * demo_type_list:日程类型
 * create by :clg  2023/8/29
 *
 * @mbg.generated
 */
public class DemoTypeList implements Serializable {
    /**
     * 类型id
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="类型id")
    private Long id;

    /**
     * 类型颜色
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="类型颜色")
    private String typeColor;

    /**
     * 类型模型
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="类型模型")
    private String typeModel;

    /**
     * 类型名字
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="类型名字")
    private String typeName;

    @ApiModelProperty(notes="")
    private Integer sortValue;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTypeColor() {
        return typeColor;
    }

    public void setTypeColor(String typeColor) {
        this.typeColor = typeColor == null ? null : typeColor.trim();
    }

    public String getTypeModel() {
        return typeModel;
    }

    public void setTypeModel(String typeModel) {
        this.typeModel = typeModel == null ? null : typeModel.trim();
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName == null ? null : typeName.trim();
    }

    public Integer getSortValue() {
        return sortValue;
    }

    public void setSortValue(Integer sortValue) {
        this.sortValue = sortValue;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", typeColor=").append(typeColor);
        sb.append(", typeModel=").append(typeModel);
        sb.append(", typeName=").append(typeName);
        sb.append(", sortValue=").append(sortValue);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DemoTypeList other = (DemoTypeList) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTypeColor() == null ? other.getTypeColor() == null : this.getTypeColor().equals(other.getTypeColor()))
            && (this.getTypeModel() == null ? other.getTypeModel() == null : this.getTypeModel().equals(other.getTypeModel()))
            && (this.getTypeName() == null ? other.getTypeName() == null : this.getTypeName().equals(other.getTypeName()))
            && (this.getSortValue() == null ? other.getSortValue() == null : this.getSortValue().equals(other.getSortValue()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTypeColor() == null) ? 0 : getTypeColor().hashCode());
        result = prime * result + ((getTypeModel() == null) ? 0 : getTypeModel().hashCode());
        result = prime * result + ((getTypeName() == null) ? 0 : getTypeName().hashCode());
        result = prime * result + ((getSortValue() == null) ? 0 : getSortValue().hashCode());
        return result;
    }
}